net: ena: fix update of interrupt moderation register
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:34 +0000 (14:31 +0300)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 7 Dec 2019 12:24:06 +0000 (12:24 +0000)
commitc4280e93d79a8136acffa716b0ffebd6f1f1ced8
treeab5de311a5497d9efd8cdeaf2c42b60a3d6ab69c
parent2cf0bc43d4ed326bfdb7047e2abfbc35fc0c5bd3
net: ena: fix update of interrupt moderation register

Current implementation always updates the interrupt register with
the smoothed_interval of the rx_ring. However this should be
done only in case of adaptive interrupt moderation. If non-adaptive
interrupt moderation is used, the non-adaptive interrupt moderation
interval should be used. This commit fixes that.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/all/ena
Gbp-Pq: Name 0010-net-ena-fix-update-of-interrupt-moderation-register.patch
drivers/net/ethernet/amazon/ena/ena_netdev.c